﻿@{
	ViewBag.Title = "简历登记";
}

<script src="~/lib/vue/dist/vue.global.js"></script>
<script src="~/lib/axios/dist/axios.js"></script>
<link href="~/lib/element-plus/dist/index.css" rel="stylesheet" />
<script src="~/lib/element-plus/dist/index.full.js"></script>

<div id="app">
	<div class="table-container">



		@* <div id="upload-box">
			<input type="file" v-on:change="handleFileChange()">
			<div>
				<img v-if="imageUrl.value" :src="imageUrl.value" id="previewImage" style="max-width: 100%; height: auto; margin-top: 20px;">
			</div>
		</div> *@
		<table :model="khbh" class="tableEdit">
			<thead>
				<tr>
					<td colspan="10">您真正在做的业务是:人力资源-招聘管理--简历管理--简历登记</td>
				</tr>
			</thead>
			<tr>
				<th>职位分类</th>
				<td>

					<el-select v-model="khbh.MajorKindName" :disabled="zwxlk" placeholder="请选择" v-on:change="CMName()">
						<el-option v-for="option in zwfl"
								   :key="option.majorKindId"
								   :label="option.majorKindName"
								   :value="option.majorKindName">
						</el-option>
					</el-select>

				</td>
				<th>职位名称</th>
				<td>

					<el-select v-model="khbh.MajorName" :disabled="zwmcxlk" placeholder="请选择">
						<el-option v-for="option in zwmc"
								   :key="option.majorId"
								   :label="option.majorName"
								   :value="option.majorName">
						</el-option>
					</el-select>

				</td>
				<th>招聘类型</th>
				<td>
					<el-select v-model="khbh.EngageType" placeholder="请选择" :disabled="isReadOnly">
						<!-- 静态选项 -->
						<el-option label="社会招聘" value="社会招聘"></el-option>
						<el-option label="企业招聘" value="企业招聘"></el-option>
					</el-select>
				</td>
			<tr>
				<th>姓名</th>
				<td>
					<input type="text" v-model="khbh.HumanName" />
				</td>
				<th>性别</th>
				<td>
					<el-select v-model="khbh.HumanSex" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="男" value="男"></el-option>
						<el-option label="女" value="女"></el-option>
					</el-select>
				</td>
				<th>EMAIL</th>
				<td>
					<input type="text" v-model="khbh.Email" />
				</td>
			</tr>

			<tr>
				<th>电话</th>
				<td>
					<input type="text" v-model="khbh.HumanTelephone" />
				</td>
				<th>家庭电话</th>
				<td>
					<input type="text" v-model="khbh.HumanHomephone" />
				</td>
				<th>手机</th>
				<td>
					<input type="text" v-model="khbh.HumanMobilephone" />
				</td>
			</tr>
			<tr>
				<th>住址</th>
				<td colspan="3">
					<input type="text" v-model="khbh.HumanAddress" class="zhuzhi" />
				</td>
				<th>邮编</th>
				<td>
					<input type="text" v-model="khbh.HumanPostcode" />
				</td>

			</tr>

			<tr>
				<th>国籍</th>
				<td>
					<el-select v-model="khbh.HumanNationality" placeholder="请选择">
						<el-option v-for="option in zp"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
				<th>出生地</th>
				<td>
					<input type="text" v-model="khbh.HumanBirthplace" />
				</td>
				<th>生日</th>
				<td>
					<input type="text" v-model="khbh.birthday" />
				</td>
			</tr>

			<tr>
				<th>民族</th>
				<td>
					<el-select v-model="khbh.HumanRace" placeholder="请选择">
						<el-option v-for="option in mz"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
				<th>宗教信仰</th>
				<td>
					<el-select v-model="khbh.HumanReligion" placeholder="无">
						<el-option v-for="option in xy"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
				<th>政治面貌</th>
				<td>
					<el-select v-model="khbh.HumanParty" placeholder="请选择">
						<el-option v-for="option in mm"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
			</tr>

			<tr>
				<th>身份证号码</th>
				<td>
					<input type="text" v-model="khbh.HumanIdcard" class="sfz" v-on:input="handleIdcardInput()" />
				</td>
				<th>年龄</th>
				<td>
					<input type="text" v-model="khbh.HumanAge" />
				</td>
				<th>毕业学校</th>
				<td>
					<input type="text" v-model="khbh.HumanCollege" />
				</td>
				<th>学历</th>
				<td>
					<el-select v-model="khbh.HumanEducatedDegree" placeholder="请选择">
						<el-option v-for="option in xl"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
			</tr>

			<tr>
				<th>教育年限</th>
				<td>
					<el-select v-model="khbh.HumanEducatedYears" placeholder="请选择">
						<el-option v-for="option in jylx"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
				<th>学历专业</th>
				<td>
					<el-select v-model="khbh.HumanEducatedMajor" placeholder="请选择">
						<el-option v-for="option in xlzy"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
				<th>薪酬要求</th>
				<td>
					<input type="text" v-model="khbh.DemandSalaryStandard" />
				</td>
				<th>注册时间</th>
				<td>
					<span>{{ formattedCurrentTime }}</span>
				</td>
			</tr>
			<tr>
				<th>特长</th>
				<td>
					<el-select v-model="khbh.HumanSpeciality" placeholder="请选择">
						<el-option v-for="option in tc"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
				<th>爱好</th>
				<td>
					<el-select v-model="khbh.HumanHobby" placeholder="请选择">
						<el-option v-for="option in ah"
								   :key="option.attributeKind"
								   :label="option.attributeName"
								   :value="option.attributeName">
						</el-option>
					</el-select>
				</td>
				<th v-if="msjgdja">推荐人</th>
				<td v-if="msjgdja">
					<input type="text" v-model="khbh.TJr" />
				</td>
				<th v-if="msjgdja">推荐时间</th>
				<td v-if="msjgdja">
					<span>{{ formattedCurrentTime }}</span>
				</td>
			</tr>
			<tr v-if="shaixuan">
				<th>档案附件</th>
				<td colspan="10">
					<input type="text" v-model="khbh.AttachmentName" class="zhuzhi" />
				</td>
			</tr>

			<tr>
				<th>个人履历</th>
				<td colspan="15">
					<textarea v-model="khbh.HumanHistoryRecords" style="resize: none;"></textarea>
				</td>
			</tr>
			<tr>
				<th>备注</th>
				<td colspan="10">
					<textarea v-model="khbh.Remark" style="resize: none;"></textarea>
				</td>
			</tr>

			<tr v-if="msjgdja">
				<th>推荐意见</th>
				<td colspan="10">
					<textarea v-model="khbh.Recomandation" style="resize: none;"></textarea>
				</td>
			</tr>

			<tr v-if="msjgdj">
				<th>面试次数</th>
				<td>
					<input type="text" v-model="khbh.InterviewAmount" />
				</td>
				<th>形象评价</th>
				<td>
					<el-select v-model="khbh.ImageDegree" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="A" value="1"></el-option>
						<el-option label="B" value="2"></el-option>
						<el-option label="C" value="3"></el-option>
					</el-select>
				</td>
				<th>口才评价</th>
				<td>
					<el-select v-model="khbh.NativeLanguageDegree" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="A" value="1"></el-option>
						<el-option label="B" value="2"></el-option>
						<el-option label="C" value="3"></el-option>
					</el-select>
				</td>
				<th>外语口语能力</th>
				<td>
					<el-select v-model="khbh.ForeignLanguageDegree" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="A" value="1"></el-option>
						<el-option label="B" value="2"></el-option>
						<el-option label="C" value="3"></el-option>
					</el-select>
				</td>
			</tr>

			<tr v-if="msjgdj">
				<th>应变能力</th>
				<td>
					<el-select v-model="khbh.ResponseSpeedDegree" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="A" value="1"></el-option>
						<el-option label="B" value="2"></el-option>
						<el-option label="C" value="3"></el-option>
					</el-select>
				</td>
				<th>EQ</th>
				<td>
					<el-select v-model="khbh.EQDegree" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="A" value="1"></el-option>
						<el-option label="B" value="2"></el-option>
						<el-option label="C" value="3"></el-option>
					</el-select>
				</td>
				<th>IQ</th>
				<td>
					<el-select v-model="khbh.IQDegree" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="A" value="1"></el-option>
						<el-option label="B" value="2"></el-option>
						<el-option label="C" value="3"></el-option>
					</el-select>
				</td>
				<th>综合素质</th>
				<td>
					<el-select v-model="khbh.MultiQualityDegree" placeholder="请选择">
						<!-- 静态选项 -->
						<el-option label="A" value="1"></el-option>
						<el-option label="B" value="2"></el-option>
						<el-option label="C" value="3"></el-option>
					</el-select>
				</td>
			</tr>

			<tr v-if="msjgdj">
				<th v-if="msjgdj">面试人</th>
				<td v-if="msjgdj">
					<input type="text" v-model="khbh.Register" />
				</td>
				<th v-if="msjgdj">面试时间</th>
				<td v-if="msjgdj">
					<el-date-picker v-model="khbh.RegisteTime" type="datetime" style="width: 200px;"></el-date-picker>
				</td>

				<th v-if="shaixuan">筛选人</th>
				<td v-if="shaixuan">
					<input type="text" v-model="khbh.Register" />
				</td>

				<th v-if="shaixuan">筛选时间</th>
				<td v-if="shaixuan">
					<span>{{ formattedCurrentTime }}</span>
				</td>

			</tr>

			<tr v-if="msjgdj">
				<th>{{bjr}}</th>
				<td colspan="10">
					<textarea v-model="khbh.InterviewComment" style="resize: none;" :disabled="isEditable"></textarea>
				</td>
			</tr>

			<tr v-if="shenpizhi">
				<th>录用申请审批审核意见</th>
				<td colspan="10">
					<textarea v-model="khbh.shenpizhil" style="resize: none;" :disabled="isEditable"></textarea>
				</td>
			</tr>


			<tfoot>
				<tr>
					<td colspan="10">
						<input type="button" value="提交" v-on:click="qd()" v-if="jldjtj" /><input type="button" value="确认" v-on:click="qr()" v-if="queren" /><input type="button" value="面试登记" v-on:click="Dengji()" v-if="shenhe" />&nbsp;&nbsp;<input type="button" v-if="qingchu" value="清除" v-on:click="qc()" />
						&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;

						<el-radio-group v-model="khbh.PassCheckComment" v-if="shaixuan" v-on:change="updateInterviewCommentPlaceholder()">
							<el-radio value="建议面试" size="large">建议面试</el-radio>
							<el-radio value="建议笔试" size="large">建议笔试</el-radio>
							<el-radio value="建议录用" size="large">建议录用</el-radio>
							<el-radio value="删除简历" size="large">删除简历</el-radio>
						</el-radio-group>

						<el-radio-group v-model="khbh.PassCheckStatus" v-if="shenqing" v-on:change="updateCheckStatusPlaceholder()">
							<el-radio value="0" size="large">释放简历</el-radio>
							<el-radio value="1" size="large">申请录用</el-radio>
						</el-radio-group>

						<el-radio-group v-model="khbh.PassPassComment" v-if="shenpi" v-on:change="updatezhuangtai()">
							<el-radio value="通过" size="large">通过</el-radio>
							<el-radio value="不通过" size="large">不通过</el-radio>
						</el-radio-group>


					</td>

				</tr>
			</tfoot>
		</table>
	</div>
</div>



<script type="text/javascript">
	const { createApp, ref, reactive, onMounted, computed, onBeforeUnmount } = Vue
	var app = createApp({

		setup() {

			const currentTime = ref(new Date());

			const khbh = ref({
				//简历登记
				MajorKindName: "",
				MajorName: "",
				EngageType: "",
				HumanName: "",
				HumanSex: "",
				Email: "",
				HumanTelephone: "",  //电话
				HumanHomephone: "",   //家庭电话
				HumanMobilephone: "", //手机
				HumanAddress: "",  //住址
				HumanPostcode: "", //邮编
				HumanNationality: "", //国籍
				HumanBirthplace: "",//出生地
				birthday: "",  //生日不需要添加到数据库但需要填写完身份证之后自动赋值
				HumanRace: "",//民族
				HumanReligion: "",//宗教信仰
				HumanParty: "", //政治面貌
				HumanIdcard: "",//身份证号
				HumanAge: "",//年龄
				HumanCollege: "",//毕业学校
				HumanEducatedDegree: "", //学历
				HumanEducatedYears: "",//教育年限
				HumanEducatedMajor: "",//学历专业
				DemandSalaryStandard: "",//薪酬标准
				HumanSpeciality: "",//特长
				HumanHobby: "",//爱好
				HumanHistoryRecords: "",//个人履历
				Remark: "", //备注
				TJr: "liu", //推荐人
				shenpizhil: "", //审批状态
				PassPassComment: "",

				//EI:面试表
				Recomandation: "",
				InterviewAmount: "1",
				ImageDegree: "",
				NativeLanguageDegree: "",
				ForeignLanguageDegree: "",
				ResponseSpeedDegree: "",
				EQDegree: "",
				IQDegree: "",
				MultiQualityDegree: "",
				Register: "liu",
				RegisteTime: "",
				InterviewComment: "",


				//FirstKindName: "",
				//SecondKindName: "",
				//ThirdKindName: "",
				//ZhaoPin: "",
				//HumanAmount: "",
				//deadline: "",
				//MajorName: "",
				//EngageRequired: "",
				//MajorDescribe: "",
				//MajorKindName: ""

			})

			//职位分类
			let zwxlk = ref(false);
			//职位名称
			let zwmcxlk = ref(false);


			//标识不同表
			let SelectMreId = ref("");
			let SelectResId = ref("");
			let PanduanPassCheckStatus = ref("");
			let Selectidentifier = ref("");
			let SelectresumeId = ref("");
			let SelecteinId = ref("");
			let SelectHI = ref("");

			let bjr = ref("面试评价");

			let msjgdj = ref(false);

			let qingchu = ref(true);

			let queren = ref(false);

			let isEditable = ref(false);

			let msjgdja = ref(false);

			let shenpi = ref(false);

			let ChiShu = ref("");

			//单选按钮
			let shenhe = ref(false);
			let shenqing = ref(false);
			let shenpizhi = ref(false);
			let shaixuan = ref(false);
			let jldjtj = ref(true);
			let danganms = ref(false);

			//身份证号的地址
			var aCity = {
				11: "北京",
				12: "天津",
				13: "河北",
				14: "山西",
				15: "内蒙古",
				21: "辽宁",
				22: "吉林",
				23: "黑龙江",
				31: "上海",
				32: "江苏",
				33: "浙江",
				34: "安徽",
				35: "福建",
				36: "江西",
				37: "山东",
				41: "河南",
				42: "湖北",
				43: "湖南",
				44: "广东",
				45: "广西",
				46: "海南",
				50: "重庆",
				51: "四川",
				52: "贵州",
				53: "云南",
				54: "西藏",
				61: "陕西",
				62: "甘肃",
				63: "青海",
				64: "宁夏",
				65: "新疆",
				71: "台湾",
				81: "香港",
				82: "澳门",
				91: "国外"
			};



			const imageUrl = ref('');
			function handleFileChange(event) {
				const file = event.target.files[0];
				if (!file) return;
				const isJPG = file.type === 'image/jpeg';
				const isPNG = file.type === 'image/png';
				const isLt500K = file.size / 1024 < 500;

				if (!isJPG && !isPNG) {
					alert("只能上传 JPG 或 PNG 格式的图片");
					return;
				}
				if (!isLt500K) {
					alert("上传图片大小不能超过 500KB");
					return;
				}

				const reader = new FileReader();
				reader.onload = () => {
					imageUrl.value = reader.result;
				};
				reader.readAsDataURL(file);
			}



			//输入完身份证号码后绑定生日和年龄
			function handleIdcardInput() {
				const idCard = this.khbh.HumanIdcard.trim();
				if (idCard.length === 18) {
					// 提取性别信息（第17位）
					const genderCode = idCard.substring(16, 17);
					this.khbh.HumanSex = genderCode % 2 === 0 ? '女' : '男';
					//出生日期
					const birthYear = idCard.substring(6, 10);
					const birthMonth = idCard.substring(10, 12);
					const birthDay = idCard.substring(12, 14);
					const birthday = `${birthYear}-${birthMonth}-${birthDay}`;
					// 计算年龄
					const birthDate = new Date(birthYear, birthMonth - 1, birthDay);
					const ageDate = new Date(Date.now() - birthDate.getTime());
					const age = Math.abs(ageDate.getUTCFullYear() - 1970);
					// 判断地区（取身份证号码的第6-8位，即地址码）
					const addressCode = idCard.substring(0, 2); // 注意：这里只是示例，实际应取6-8位
					khbh.value.HumanBirthplace = this.aCity[parseInt(addressCode, 10)] || '未知';
					// 更新数据
					khbh.value.birthday = birthday;
					khbh.value.HumanAge = age;
				} else if (idCard.length === 15) {
					// 对于15位的身份证号码，性别是第15位
					const genderCode = idCard.substring(14, 15);
					this.khbh.HumanSex = genderCode % 2 === 0 ? '女' : '男';
					khbh.value.HumanPostcode = "410011 - 427000";
					// 注意：现在15位的身份证号码已经很少见了，但处理时仍需要考虑
				} else {
					// 清空数据或者给出错误提示
					this.khbh.value.birthday = '';
					this.khbh.value.HumanAge = '';
				}
			}

			// 职位分类编号下拉框选项数据
			let zwfl = ref("");
			// 职位分类编号下拉框绑定值
			function zwfltKindOptions() {

				axios.get('/EMR/SelectCMK')
					.then(res => {
						//console.info(res)
						zwfl.value = res.data;
					})
					.catch(err => {
						console.info(res);
					})
			}
			
			//存职位编号
			let zwmc = ref("");
			function CMName() {
				if (!khbh.value.MajorKindName) {
					return;
				}
				axios.get("/EMR/SelectCM2Name?name=" + encodeURIComponent(khbh.value.MajorKindName))
					.then(function (response) {
						zwmc.value = response.data;
						const foundMajor = zwmc.value.find(option => option.majorName === previousMajorName);
						if (foundMajor) {
							khbh.value.MajorName = foundMajor.majorName;
							khbh.value.MajorId = foundMajor.majorId;
						}
					})
					.catch(function (error) {
						console.error(error);
					});
			}

			//国籍类型下拉框选项数据
			let zp = ref("");
			const fetchZhaoPinOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '国籍')
					.then(res => {
						zp.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//民族类型下拉框选项数据
			let mz = ref("");
			const ZhongjiaoOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '民族')
					.then(res => {
						mz.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//宗教信仰下拉框选项数据
			let xy = ref("");
			const MingzuOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '宗教信仰')
					.then(res => {
						xy.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//政治面貌下拉框选项数据
			let mm = ref("");
			const MianmaoOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '政治面貌')
					.then(res => {
						mm.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//学历下拉框选项数据
			let xl = ref("");
			const XueliOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '学历')
					.then(res => {
						xl.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//教育年限下拉框选项数据
			let jylx = ref("");
			const JiaoyulianxianOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '教育年限')
					.then(res => {
						jylx.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//学历专业下拉框选项数据
			let xlzy = ref("");
			const XlzyOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '学历专业')
					.then(res => {
						xlzy.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//特长下拉框选项数据
			let tc = ref("");
			const TcOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '特长')
					.then(res => {
						tc.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//爱好下拉框选项数据
			let ah = ref("");
			const AhOptions = () => {
				axios.get('/EMR/SelectCPCName?name=' + '爱好')
					.then(res => {
						ah.value = res.data;
					})
					.catch(err => {
						console.error(err);
					});
			};

			//选中对应的单选按钮绑定对应的值
			function updateInterviewCommentPlaceholder() {
				khbh.value.InterviewComment = this.khbh.PassCheckComment;
			}
			function updateCheckStatusPlaceholder() {
				if (this.khbh.PassCheckStatus == 0) {
					khbh.value.InterviewComment = "不通过";
				} else if (this.khbh.PassCheckStatus == 1) {
					khbh.value.InterviewComment = "通过";
				};
			}
			function updatezhuangtai() {
				khbh.value.shenpizhil = this.khbh.PassPassComment;
			}

			//面试结果添加事件
			function Dengji() {
				//窗体加载获取到的面试次数每点击次就+1
				//ChiShu.value++;

				//alert("++"+ChiShu.value);
				//拿到职位分类编号
				const zhiweicc = this.zwfl.find(option => option.majorKindName === this.khbh.MajorKindName);
				//拿到职位名称编号
				const zhiwemingc = this.zwmc.find(option => option.majorName === this.khbh.MajorName);

				if (!this.khbh.ImageDegree || !this.khbh.NativeLanguageDegree || !this.khbh.ForeignLanguageDegree || !this.khbh.ResponseSpeedDegree || !this.khbh.EQDegree || !this.khbh.IQDegree || !this.khbh.MultiQualityDegree) {
					alert("需填写完整评价!");
					return;
				}
				if (!this.khbh.RegisteTime) {
					alert("需填写面试时间!");
					return;
				}
				const deadlineTime = new Date(this.khbh.RegisteTime);
				const currentTime = new Date();//当前时间
				//判断截至时间不可小于当前时间
				if (deadlineTime < currentTime) {
					alert("面试时间不可小于当前时间!!");
					return;
				}

				//通过面试结果登记之后修改ER的面试状态与复核状态
				axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
				axios.post('/EI/UpdateEI', {
					EinId: SelecteinId.value,
					InterviewAmount: khbh.value.InterviewAmount,
					Register: khbh.value.Register,
					ImageDegree: this.khbh.ImageDegree,
					NativeLanguageDegree: this.khbh.NativeLanguageDegree,
					ForeignLanguageDegree: this.khbh.ForeignLanguageDegree,
					ResponseSpeedDegree: this.khbh.ResponseSpeedDegree,
					EQDegree: this.khbh.EQDegree,
					IQDegree: this.khbh.IQDegree,
					MultiQualityDegree: this.khbh.MultiQualityDegree,
					RegisteTime: new Date(this.khbh.RegisteTime).toISOString(),
					InterviewComment: khbh.value.InterviewComment,
					InterviewStatus: "已登记",
					Result: ""
				}).then(function (response) {
					console.log("修改成功!");
					alert("编辑成功");
				})
					.catch(function (error) {
						console.error(error);
					});
				//alert("正在进行面试结果登记!");
			}


			//点击确定添加or修改事件
			function qd() {
				if (SelectResId.value != null) {
					var self = this;
					//拿到职位分类编号
					const zhiweicc = this.zwfl.find(option => option.majorKindName === this.khbh.MajorKindName);
					//拿到职位名称编号
					const zhiwemingc = this.zwmc.find(option => option.majorName === this.khbh.MajorName);
					alert(SelectResId.value + "==" + this.khbh.MajorKindName)
					//通过面试结果登记之后修改ER的面试状态与复核状态在添加面试表
					axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
					axios.post('/ER/UpdateERTuijians', {
						ResId: SelectResId.value,
						CheckStatus: "已复核",
						Recomandation: khbh.value.Recomandation,
						Checker: khbh.value.TJr,
						CheckTime: new Date(formattedCurrentTime.value).toISOString()
					}).then(function (response) {
						alert("编辑成功!");
						axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
						axios.post('/EI/AddEI', {
							HumanName: khbh.value.HumanName, //姓名
							InterviewAmount: 0,//面试次数
							HumanMajorKindId: zhiweicc.majorKindId, //职位分类编号
							HumanMajorKindName: self.khbh.MajorKindName,//职位分类名称
							HumanMajorId: zhiwemingc.majorId,// 职位编号
							HunmaMajorName: self.khbh.MajorName,//职位名称
							ImageDegree: "",//形象等级
							NativeLanguageDegree: "",//口才等级
							ForeignLanguageDegree: "", //外语口语等级
							ResponseSpeedDegree: "",//应变能力
							EQDegree: "",//EQ
							IQDegree: "",//IQ
							MultiQualityDegree: "",//综合素质
							Register: khbh.value.Register,//面试人ooo
							RegisteTime: "",//面试时间
							ResumeId: SelectResId.value,//简历编号
							Result: "笔试", //面试结果
							InterviewComment: "推荐",//面试评价
							CheckTime: new Date(formattedCurrentTime.value).toISOString(),//筛选时间
							CheckComment: "待评价",//筛选评价
							InterviewStatus: "待面试",//面试状态
							CheckStatus: "待筛选",//筛选状态
						}).then(function (response) {
							alert("添加成功!");
						})
							.catch(function (error) {
								console.error(error);
							});
						window.location.href = '/ER/ERSX?param=1'
						console.log("编辑成功!");
					})
						.catch(function (error) {
							console.error(error);
						});
					//alert("正在添加推荐意见");
					return;
				}
				if (khbh.value.HumanName.length < 1) {
					alert("姓名不能为空!")
					return;
				}
				const regex = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}([0-9]|X|x)$/;
				if (!regex.test(khbh.value.HumanIdcard)) {
					alert("身份证号码格式不正确");
					return;
				}
				//拿到职位分类编号
				const zhiweicc = this.zwfl.find(option => option.majorKindName === this.khbh.MajorKindName);
				//拿到职位名称编号
				const zhiwemingc = this.zwmc.find(option => option.majorName === this.khbh.MajorName);
				alert(zhiwemingc.majorId + "" + zhiweicc.majorKindId)
				alert(zhiweicc.majorKindId + "++" + this.khbh.MajorName + "++" + zhiwemingc.majorId);
				axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
				axios.post('/ER/AddER', {
					HumanMajorKindId:zhiweicc.majorKindId, //职位分类编号
					HumanMajorKindName: this.khbh.MajorKindName,//职位分类名称
					HumanMajorId: zhiwemingc.majorId,// 职位编号
					HunmaMajorName: this.khbh.MajorName,//职位名称
					EngageType: this.khbh.EngageType,//招聘类型
					HumanBirthday: khbh.value.birthday, //出生日期
					HumanName: khbh.value.HumanName, //姓名
					HumanSex: this.khbh.HumanSex,//性别
					Email: khbh.value.Email,//邮箱
					HumanTelephone: khbh.value.HumanTelephone,//电话
					HumanHomephone: khbh.value.HumanHomephone,//家庭电话
					HumanMobilephone: khbh.value.HumanMobilephone,//手机
					HumanAddress: khbh.value.HumanAddress,//住址
					HumanPostcode: khbh.value.HumanPostcode,//邮编
					HumanNationality: this.khbh.HumanNationality,//国籍
					HumanBirthplace: khbh.value.HumanBirthplace,//出生地
					HumanIdcard: khbh.value.HumanIdcard,//身份证号
					HumanAge: khbh.value.HumanAge,//年龄
					HumanCollege: khbh.value.HumanCollege,//毕业学校
					HumanEducatedDegree: this.khbh.HumanEducatedDegree,//学历
					HumanRace: this.khbh.HumanRace,//名族
					HumanReligion: this.khbh.HumanReligion,//宗教信仰
					HumanParty: this.khbh.HumanParty,//政治面貌
					HumanEducatedYears: this.khbh.HumanEducatedYears,//教育年限
					HumanEducatedMajor: this.khbh.HumanEducatedMajor,//学历专业
					DemandSalaryStandard: khbh.value.DemandSalaryStandard,//薪酬要求
					HumanSpeciality: khbh.value.HumanSpeciality,//特长
					HumanHobby: khbh.value.HumanHobby,//爱好
					HumanHistoryRecords: khbh.value.HumanHistoryRecords,//个人履历
					Remark: khbh.value.Remark, //备注
					RegistTime: new Date(formattedCurrentTime.value).toISOString(),
					CheckTime: new Date(formattedCurrentTime.value).toISOString(),
					TestCheckTime: new Date(formattedCurrentTime.value).toISOString(),
					PassCheckTime: new Date(formattedCurrentTime.value).toISOString(),
					PassPassComment: "待审批",
					InterviewStatus: "待面试",//面试状态
					PassCheckStatus: "待复核",
					checkStatus: "待复核",
					PassRegistTime: new Date(formattedCurrentTime.value).toISOString(),//通过登记时间
					PassRegister: khbh.value.HumanName, //通过登记人名字
				}).then(function (response) {
					alert("添加成功!");
				})
					.catch(function (error) {
						console.error(error);
					});
				birthday
				//alert("点击了");
			}

			function qr() {

				if (SelectHI.value == 1) {
					//录用申请的操作
					axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
					axios.post('/ER/UpdateLuyong', {
						ResId: SelectresumeId.value,
						PassCheckComment: khbh.value.InterviewComment, //录用审核
						PassPassComment: "待审批"//录用审批
					}).then(async function (response) {
						if (khbh.value.InterviewComment == '不通过') {
							window.location.href = '/ER/ERSQ';
						} else {
							window.location.href = '/ER/ERSP';
						}
						alert("状态更新完成");
					}).catch(function (error) {
						console.error('Error:', error);
					});
				} else if (SelectHI.value == 2) {
					axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
					axios.post('/ER/UpdateLuyong', {
						ResId: SelectresumeId.value,
						PassCheckComment: khbh.value.InterviewComment, //录用审核
						PassPassComment: khbh.value.shenpizhil //录用审批
					}).then(async function (response) {
						window.location.href = '/ER/ERSP';
						alert("状态更新完成");
					}).catch(function (error) {
						console.error('Error:', error);
					});
					//alert("正在做录用审批的操作");
				} else {
					if (khbh.value.PassCheckComment.length < 1) {
						alert("需填写录用审核意见!");
						return;
					}
					if (khbh.value.HumanName.length < 1) {
						alert("姓名不能为空!")
						return;
					}
					const regex = /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(10|11|12))(([0-2][1-9])|10|20|30|31)\d{3}([0-9]|X|x)$/;
					if (!regex.test(khbh.value.HumanIdcard)) {
						alert("身份证号码格式不正确");
						return;
					}
					//UpdateCheckStatus
					switch (khbh.value.PassCheckComment) {
						case '建议面试':
							window.location.href = '/EI/EI';
							break;
						case '建议笔试':
							window.location.href = '/EI/EI';
							break;
						case '建议录用':
							axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
							axios.post('/ER/UpdateMianshi', {
								ResId: SelectResId.value,
								InterviewStatus: khbh.value.PassCheckComment,
								PassCheckStatus: "已复核",
								PassCheckTime: new Date(formattedCurrentTime.value).toISOString(),
								PassChecker: khbh.value.Register
							}).then(async function (response) {
								axios.defaults.headers["Content-Type"] = "application/x-www-form-urlencoded";
								axios.post('/EI/UpdateCheckStatus', {
									EinId: SelecteinId.value,
									CheckStatus: khbh.value.PassCheckComment,
									CheckComment: '推荐',
									CheckTime: new Date(formattedCurrentTime.value).toISOString(),
									Checker: khbh.value.Register
								}).then(async function (response) {
									//邮箱如果邮箱顺利发送再跳转到录用申请



									//这里跳转的时候需要给个标识数字
									window.location.href = '/ER/ERSQ';

									console.log("已通过建议");
								}).catch(function (error) {
									console.error('Error:', error);
								});
							}).catch(function (error) {
								console.error('Error:', error);
							});
							break;
						case '删除简历':
							axios.delete('/EI/DeleteEI/' + SelecteinId.value)
								.then(res => {

									if (res.data > 0) {
										axios.delete('/ER/DeleteER/' + SelectresumeId.value)
											.then(res => {
												if (res.data > 0) {
													alert("操作成功!");
													window.location.href = '/EI/EISX';
												}
											})
											.catch(err => {
												console.log(err);
											})
									}
								})
								.catch(err => {
									console.log(err);
								})

							break;
						default:
							alert("需填写正常操作指令!");
					}
				}

			}

			//清除所有数据
			function qc() {
				khbh.value.FirstKindName = "";
				khbh.value.ThirdKindName = "";
				khbh.value.ZhaoPin = "";
				khbh.value.HumanAmount = "";
				khbh.value.deadline = "";
				khbh.value.MajorDescribe = "";
				khbh.value.EngageRequired = "";
				khbh.value.SecondKindName = "";
				khbh.value.MajorKindName = "";
				khbh.value.MajorName = "";
			}

			//判断年龄的大小
			function isNumericAndIntegerLessThanThousand(n) {
				var parsed = parseFloat(n);
				// 检查是否是数字且不是NaN，并且是有限的
				if (!isNaN(parsed) && Number.isFinite(parsed)) {
					// 检查是否没有小数部分，即是否为整数
					if (parsed === Math.floor(parsed)) {
						// 检查整数是否小于或等于1000并且是非负数
						if (parsed <= 125 && parsed >= 0) {
							return true; // 如果满足所有条件，返回true
						} else {
							alert("年龄超过125"); // 如果超过1000但仍然是整数，显示警告框
							return false; // 但仍然返回false，以指示不满足条件
						}
					}
				}
				// 如果不是数字、不是整数或不是非负整数，显示警告框并返回false
				alert("请填写正确的年龄!!");
				return false;
			}

			// 使用计算属性来格式化时间，包括年月日时分秒
			const formattedCurrentTime = computed(() => {
				const date = currentTime.value;
				const year = date.getFullYear();
				const month = (date.getMonth() + 1).toString().padStart(2, '0');
				const day = date.getDate().toString().padStart(2, '0');
				const hours = date.getHours().toString().padStart(2, '0');
				const minutes = date.getMinutes().toString().padStart(2, '0');
				const seconds = date.getSeconds().toString().padStart(2, '0');
				return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
			});
			// 更新时间的函数，每秒钟更新一次
			const updateCurrentTime = () => {
				currentTime.value = new Date();
			};


			// 在组件挂载时开始定时更新
			onMounted(() => {
				// 每秒钟更新一次时间
				setInterval(updateCurrentTime, 1000);

				//职位分类下拉框
				zwfltKindOptions();
				//国籍下拉框
				fetchZhaoPinOptions();
				//民族下拉框
				MingzuOptions();
				//宗教信仰
				ZhongjiaoOptions();
				//政治面貌下拉框
				MianmaoOptions();
				//学历下拉框
				XueliOptions();
				//教育年限下拉框
				JiaoyulianxianOptions();
				//学历专业下拉框
				XlzyOptions();
				//特长下拉框
				TcOptions();
				//爱好下拉框
				AhOptions();

				////登记人
				//nn();

				// 获取当前页面的查询参数
				const queryParams = new URLSearchParams(window.location.search);
				// 创建一个空对象来存储解析后的数据
				let rowData = {};
				// 遍历查询参数并解析到 rowData 对象中
				for (const [key, value] of queryParams) {
					// 解码 key 和 value，并存储到 rowData 中
					rowData[decodeURIComponent(key)] = decodeURIComponent(value);
				}

				//拿到随意职位信息
				SelectMreId.value = rowData.mreId;
				//拿到面试表ID
				SelecteinId.value = rowData.einId;

				SelectResId.value = rowData.resId;
				//拿到标识ID
				Selectidentifier.value = rowData.identifier;
				//拿到简历表ID
				SelectresumeId.value = rowData.resumeId;

				//拿到面试次数
				ChiShu.value = rowData.interviewAmount;

				//拿到passCheckStatus判断是,已复核还是待复核若是已复核则把隐藏的给打开
				PanduanPassCheckStatus.value = rowData.checkStatus;

				//绑定对应职位信息
				if (SelectMreId.value != null) {
					khbh.value.MajorKindName = rowData.majorId;
					khbh.value.MajorName = rowData.majorName;
					khbh.value.EngageType = rowData.engageType;
					CMName();
				} else {
					console.log("没有拿到SelectMreId的数据");
				}

				if (SelectResId.value != null) {
					khbh.value.MajorKindName = rowData.humanMajorKindName;
					khbh.value.MajorName = rowData.hunmaMajorName;
					khbh.value.EngageType = rowData.engageType;
					khbh.value.HumanName = rowData.humanName;
					khbh.value.HumanSex = rowData.humanSex;
					khbh.value.Email = rowData.email;
					khbh.value.HumanTelephone = rowData.humanTelephone; //电话
					khbh.value.HumanHomephone = rowData.humanHomephone;   //家庭电话
					khbh.value.HumanMobilephone = rowData.humanMobilephone; //手机
					khbh.value.HumanAddress = rowData.humanAddress;  //住址
					khbh.value.HumanPostcode = rowData.humanPostcode; //邮编
					khbh.value.HumanNationality = rowData.humanNationality; //国籍
					khbh.value.HumanBirthplace = rowData.humanBirthplace;//出生地
					khbh.value.birthday = rowData.humanBirthday;  //生日不需要添加到数据库但需要填写完身份证之后自动赋值
					khbh.value.HumanRace = rowData.humanRace;//民族
					khbh.value.HumanReligion = rowData.humanReligion;//宗教信仰
					khbh.value.HumanParty = rowData.humanParty; //政治面貌
					khbh.value.HumanIdcard = rowData.humanIdcard;//身份证号
					khbh.value.HumanAge = rowData.humanAge;//年龄
					khbh.value.HumanCollege = rowData.humanCollege;//毕业学校
					khbh.value.HumanEducatedDegree = rowData.humanEducatedDegree; //学历
					khbh.value.HumanEducatedYears = rowData.humanEducatedYears;//教育年限
					khbh.value.HumanEducatedMajor = rowData.humanEducatedMajor;//学历专业
					khbh.value.DemandSalaryStandard = rowData.demandSalaryStandard;//薪酬标准
					khbh.value.HumanSpeciality = rowData.humanSpeciality;//特长
					khbh.value.HumanHobby = rowData.humanHobby;//爱好
					khbh.value.HumanHistoryRecords = rowData.humanHistoryRecords;//个人履历
					khbh.value.Remark = rowData.remark; //备注
					if (PanduanPassCheckStatus.value == "已复核") {
						jldjtj.value = false;
						msjgdj.value = false;
						shenhe.value = false;
						qingchu.value = false;
						//msjgdja.value = true;
					} else if (PanduanPassCheckStatus.value != "已复核") {
						msjgdja.value = true;
					}
					CMName();
					//msjgdj.value = true;
					//shenhe.value = true;
					//handleIdcardInput();
				} else {
					console.log("没有拿到SelectResId的数据");
				}
				if (Selectidentifier.value == 1) {
					khbh.value.MajorKindName = rowData.humanMajorKindName;
					khbh.value.MajorName = rowData.hunmaMajorName;
					khbh.value.EngageType = rowData.engageType;
					khbh.value.HumanName = rowData.humanName;
					khbh.value.HumanSex = rowData.humanSex;
					khbh.value.Email = rowData.email;
					khbh.value.HumanTelephone = rowData.humanTelephone; //电话
					khbh.value.HumanHomephone = rowData.humanHomephone;   //家庭电话
					khbh.value.HumanMobilephone = rowData.humanMobilephone; //手机
					khbh.value.HumanAddress = rowData.humanAddress;  //住址
					khbh.value.HumanPostcode = rowData.humanPostcode; //邮编
					khbh.value.HumanNationality = rowData.humanNationality; //国籍
					khbh.value.HumanBirthplace = rowData.humanBirthplace;//出生地
					khbh.value.birthday = rowData.humanBirthday;  //生日不需要添加到数据库但需要填写完身份证之后自动赋值
					khbh.value.HumanRace = rowData.humanRace;//民族
					khbh.value.HumanReligion = rowData.humanReligion;//宗教信仰
					khbh.value.HumanParty = rowData.humanParty; //政治面貌
					khbh.value.HumanIdcard = rowData.humanIdcard;//身份证号
					khbh.value.HumanAge = rowData.humanAge;//年龄
					khbh.value.HumanCollege = rowData.humanCollege;//毕业学校
					khbh.value.HumanEducatedDegree = rowData.humanEducatedDegree; //学历
					khbh.value.HumanEducatedYears = rowData.humanEducatedYears;//教育年限
					khbh.value.HumanEducatedMajor = rowData.humanEducatedMajor;//学历专业
					khbh.value.DemandSalaryStandard = rowData.demandSalaryStandard;//薪酬标准
					khbh.value.HumanSpeciality = rowData.humanSpeciality;//特长
					khbh.value.HumanHobby = rowData.humanHobby;//爱好
					khbh.value.HumanHistoryRecords = rowData.humanHistoryRecords;//个人履历
					khbh.value.Remark = rowData.remark; //备注
					////EI:面试表
					//khbh.value.Recomandation = rowData.recomandation;
					khbh.value.InterviewAmount = rowData.interviewAmount;
					khbh.value.InterviewAmount++;
					//khbh.value.InterviewAmount = rowData.interviewAmount;
					//khbh.value.ImageDegree = rowData.imageDegree;
					//khbh.value.NativeLanguageDegree = rowData.nativeLanguageDegree;
					//khbh.value.ForeignLanguageDegree = rowData.foreignLanguageDegree;
					//khbh.value.ResponseSpeedDegree = rowData.responseSpeedDegree;
					//khbh.value.EQDegree = rowData.eqDegree;
					//khbh.value.IQDegree = rowData.iqDegree;
					//khbh.value.MultiQualityDegree = rowData.multiQualityDegree;
					//khbh.value.Register = rowData.register;
					//khbh.value.RegisteTime = rowData.registeTime;
					//khbh.value.InterviewComment = rowData.interviewComment;
					msjgdja.value = true;
					//shaixuan.value = true;
					msjgdj.value = true;
					jldjtj.value = false;
					queren.value = false;
					shenhe.value = true;
					CMName();
					bjr.value = "面试评价";
					//msjgdj.value = true;
					//shenhe.value = true;
					//jldjtj.value = false;
				} else if (Selectidentifier.value == 2) {

					khbh.value.MajorKindName = rowData.humanMajorKindName;
					khbh.value.MajorName = rowData.hunmaMajorName;
					khbh.value.EngageType = rowData.engageType;
					khbh.value.HumanName = rowData.humanName;
					khbh.value.HumanSex = rowData.humanSex;
					khbh.value.Email = rowData.email;
					khbh.value.HumanTelephone = rowData.humanTelephone; //电话
					khbh.value.HumanHomephone = rowData.humanHomephone;   //家庭电话
					khbh.value.HumanMobilephone = rowData.humanMobilephone; //手机
					khbh.value.HumanAddress = rowData.humanAddress;  //住址
					khbh.value.HumanPostcode = rowData.humanPostcode; //邮编
					khbh.value.HumanNationality = rowData.humanNationality; //国籍
					khbh.value.HumanBirthplace = rowData.humanBirthplace;//出生地
					khbh.value.birthday = rowData.humanBirthday;  //生日不需要添加到数据库但需要填写完身份证之后自动赋值
					khbh.value.HumanRace = rowData.humanRace;//民族
					khbh.value.HumanReligion = rowData.humanReligion;//宗教信仰
					khbh.value.HumanParty = rowData.humanParty; //政治面貌
					khbh.value.HumanIdcard = rowData.humanIdcard;//身份证号
					khbh.value.HumanAge = rowData.humanAge;//年龄
					khbh.value.HumanCollege = rowData.humanCollege;//毕业学校
					khbh.value.HumanEducatedDegree = rowData.humanEducatedDegree; //学历
					khbh.value.HumanEducatedYears = rowData.humanEducatedYears;//教育年限
					khbh.value.HumanEducatedMajor = rowData.humanEducatedMajor;//学历专业
					khbh.value.DemandSalaryStandard = rowData.demandSalaryStandard;//薪酬标准
					khbh.value.HumanSpeciality = rowData.humanSpeciality;//特长
					khbh.value.HumanHobby = rowData.humanHobby;//爱好
					khbh.value.HumanHistoryRecords = rowData.humanHistoryRecords;//个人履历
					khbh.value.Remark = rowData.remark; //备注

					//EI:面试表
					khbh.value.Recomandation = rowData.recomandation;
					khbh.value.InterviewAmount = rowData.interviewAmount;
					khbh.value.ImageDegree = rowData.imageDegree;
					khbh.value.NativeLanguageDegree = rowData.nativeLanguageDegree;
					khbh.value.ForeignLanguageDegree = rowData.foreignLanguageDegree;
					khbh.value.ResponseSpeedDegree = rowData.responseSpeedDegree;
					khbh.value.EQDegree = rowData.eqDegree;
					khbh.value.IQDegree = rowData.iqDegree;
					khbh.value.MultiQualityDegree = rowData.multiQualityDegree;
					khbh.value.Register = rowData.register;
					khbh.value.RegisteTime = rowData.registeTime;
					//khbh.value.InterviewComment = rowData.interviewComment;

					shaixuan.value = true;

					queren.value = true;

					msjgdj.value = true;

					jldjtj.value = false;

					//禁用文本框
					isEditable.value = true;

					bjr.value = "录用申请审核意见";

				} else {
					console.log("没有拿到Selectidentifier的数据");
				}

				if (rowData.HI != null) {
					khbh.value.MajorKindName = rowData.humanMajorKindName;
					khbh.value.MajorName = rowData.hunmaMajorName;
					khbh.value.EngageType = rowData.engageType;
					khbh.value.HumanName = rowData.humanName;
					khbh.value.HumanSex = rowData.humanSex;
					khbh.value.Email = rowData.email;
					khbh.value.HumanTelephone = rowData.humanTelephone; //电话
					khbh.value.HumanHomephone = rowData.humanHomephone;   //家庭电话
					khbh.value.HumanMobilephone = rowData.humanMobilephone; //手机
					khbh.value.HumanAddress = rowData.humanAddress;  //住址
					khbh.value.HumanPostcode = rowData.humanPostcode; //邮编
					khbh.value.HumanNationality = rowData.humanNationality; //国籍
					khbh.value.HumanBirthplace = rowData.humanBirthplace;//出生地
					khbh.value.birthday = rowData.humanBirthday;  //生日不需要添加到数据库但需要填写完身份证之后自动赋值
					khbh.value.HumanRace = rowData.humanRace;//民族
					khbh.value.HumanReligion = rowData.humanReligion;//宗教信仰
					khbh.value.HumanParty = rowData.humanParty; //政治面貌
					khbh.value.HumanIdcard = rowData.humanIdcard;//身份证号
					khbh.value.HumanAge = rowData.humanAge;//年龄
					khbh.value.HumanCollege = rowData.humanCollege;//毕业学校
					khbh.value.HumanEducatedDegree = rowData.humanEducatedDegree; //学历
					khbh.value.HumanEducatedYears = rowData.humanEducatedYears;//教育年限
					khbh.value.HumanEducatedMajor = rowData.humanEducatedMajor;//学历专业
					khbh.value.DemandSalaryStandard = rowData.demandSalaryStandard;//薪酬标准
					khbh.value.HumanSpeciality = rowData.humanSpeciality;//特长
					khbh.value.HumanHobby = rowData.humanHobby;//爱好
					khbh.value.HumanHistoryRecords = rowData.humanHistoryRecords;//个人履历
					khbh.value.Remark = rowData.remark; //备注
					//EI:面试表
					khbh.value.Recomandation = rowData.recomandation;
					khbh.value.InterviewAmount = rowData.interviewAmount;
					khbh.value.ImageDegree = rowData.imageDegree;
					khbh.value.NativeLanguageDegree = rowData.nativeLanguageDegree;
					khbh.value.ForeignLanguageDegree = rowData.foreignLanguageDegree;
					khbh.value.ResponseSpeedDegree = rowData.responseSpeedDegree;
					khbh.value.EQDegree = rowData.eqDegree;
					khbh.value.IQDegree = rowData.iqDegree;
					khbh.value.MultiQualityDegree = rowData.multiQualityDegree;
					khbh.value.Register = rowData.register;
					khbh.value.RegisteTime = rowData.registeTime;


					SelectHI.value = rowData.HI;

					bjr.value = '录用申请审核意见';
					if (SelectHI.value == 1) {

						shaixuan.value = true;
						queren.value = true;
						msjgdj.value = true;
						shaixuan.value = false;
						shenqing.value = true;
						jldjtj.value = false;
						msjgdja.value = true;
						isEditable.value = true;
					} else if (SelectHI.value == 2) {

						khbh.value.InterviewComment = rowData.passCheckComment;

						shaixuan.value = true;
						queren.value = true;
						msjgdj.value = true;
						shaixuan.value = false;
						shenpi.value = true;
						jldjtj.value = false;
						msjgdja.value = true;
						isEditable.value = true;
						shenpizhi.value = true;

					} else if (SelectHI.value == 3) {

						jldjtj.value = false;
						qingchu.value = false;

						khbh.value.InterviewComment = rowData.passCheckComment;
						khbh.value.shenpizhil = rowData.passPassComment;

						shaixuan.value = true;
						msjgdj.value = true;
						shaixuan.value = false;
						jldjtj.value = false;
						msjgdja.value = true;
						isEditable.value = true;
						shenpizhi.value = true;
					}
				}



				// 现在 rowData 对象包含了从上一个页面传递过来的数据
				console.log(rowData);
				console.log(Selectidentifier.value);
				console.log(SelectMreId.value);
				//console.log('参数为:', Panduan.value);
				console.log("================================+++===================================");

			});
			// 在组件销毁前清除定时器
			onBeforeUnmount(() => {
				clearInterval(updateCurrentTime);
			});

			////拿到登记人
			//function nn(){
			//	const uTrueName = JSON.parse(sessionStorage.getItem('users') || '[]')
			//	khbh.value.Register = uTrueName.value;
			//}

			zwfltKindOptions();


			return {
				khbh,
				formattedCurrentTime,
				qd,
				isNumericAndIntegerLessThanThousand,
				qc,
				zwfl,
				zwfltKindOptions,
				zwmc,
				CMName,
				zwmcxlk,
				zwxlk,
				SelectMreId,
				bjr,
				msjgdj,
				msjgdja,
				shenhe,
				shenqing,
				shenpi,
				fetchZhaoPinOptions,
				zp,
				MingzuOptions,
				mz,
				ZhongjiaoOptions,
				xy,
				MianmaoOptions,
				mm,
				XueliOptions,
				xl,
				JiaoyulianxianOptions,
				jylx,
				XlzyOptions,
				xlzy,
				TcOptions,
				tc,
				AhOptions,
				ah,
				SelectResId,
				handleIdcardInput,
				aCity,
				shaixuan,
				jldjtj,
				Dengji,
				danganms,
				PanduanPassCheckStatus,
				qingchu,
				Selectidentifier,
				updateInterviewCommentPlaceholder,
				queren,
				qr,
				isEditable,
				SelectresumeId,
				SelecteinId,
				ChiShu,
				updateCheckStatusPlaceholder,
				SelectHI,
				imageUrl,
				handleFileChange,
				shenpizhi,
				updatezhuangtai

				//nn,//拿到登记人


					


			}

		}
	});
	app.use(ElementPlus)
	app.mount('#app')

</script>

<style scoped>

	/* form 表单定位 */
	.form-upload {
		width: 200px;
		height: 200px;
		border: 1px solid red;
		margin: 200px auto;
		position: relative;
	}
	/* 相对于form 表单定位 设置提醒文字 位于 第五层 */
	.form-upload-text {
		position: absolute;
		z-index: 5;
		top: 50%;
		left: 50%;
		transform: translate(-50%,-50%);
	}
	/* 相对于 form 表单定位 设置 点击范围位于最上层 第十层 */
	.form-upload-file {
		position: absolute;
		z-index: 10;
		width: 200px;
		height: 200px;
		background-color: orange;
		opacity: 0;
	}
	/* 相对于 form 表单 定位设置 位于 文字 与 文件中间展示 第八层 */
	.form-upload-imgs {
		position: absolute;
		z-index: 8;
		width: 200px;
		height: 200px;
	}

	.upload-box {
		position: absolute;
		top: 47px;
		right: 10px;
		padding: 10px;
		background-color: #ccc; /* 设置背景色或根据设计要求调整 */
		border: 1px solid #999; /* 设置边框样式 */
		width: 250px;
		height: 169px;
		border: 2px dashed #ccc;
		display: flex;
		justify-content: center;
		align-items: center;
	}

	.plus {
		font-size: 24px; /* 调整加号图标的大小 */
		text-align: center;
		cursor: pointer;
		font-size: 24px;
	}

	.hidden-input {
		position: absolute;
		width: 100px;
		height: 100px;
		opacity: 0;
		cursor: pointer;
		margin-left: 910px;
		margin-bottom: 200px;
	}

	.table-container {
		position: relative; /* 确保内部元素定位相对于该容器 */
		margin-bottom: 20px; /* 根据需要调整间距 */
		height: 100vh; /* 视口高度 */
		overflow-y: auto; /* 允许垂直滚动 */
	}


	.t {
		height: 500px;
	}

	#app {
		width: 1200px;
		height: auto;
	}

	.zhuzhi {
		width: 400px;
	}

	.sfz {
		width: 280px;
	}

	body {
		font-size: 12px;
	}

	a {
		text-decoration: none;
	}

	input[type='text'] {
		border: solid 1px black;
		width: 80%;
	}

	textarea {
		border: solid 1px black;
		width: 1100px;
		height: 80px;
	}

	.tableEdit {
		border: solid 1px #f4f4f4;
		border-collapse: collapse;
		width: 100%;
		/*margin: 25px;*/
		height: 500px;
	}

		.tableEdit th {
			text-align: right;
			padding: 4px 7px;
			border: solid 1px #f4f4f4;
			width: 100px;
			background-color: #f4f4f4;
		}

		.tableEdit td {
			text-align: left;
			padding: 4px 7px;
			border: solid 1px #f4f4f4;
		}

		.tableEdit thead {
			border: solid 1px #f4f4f4;
			
			padding: 4px;
			font-weight: bold;
		}

</style>